import React from "react";
import { routes } from "./routes";
import { useRoutes, BrowserRouter } from "react-router-dom";
const RouterView = () => {
  const RoutesView = () => useRoutes(routes);
  return (
    <BrowserRouter>
      <React.Suspense>
        <RoutesView></RoutesView>
      </React.Suspense>
    </BrowserRouter>
  );
};

export default RouterView;
